.class public final Lcom/ninesky/browser/setting/a;
.super Ljava/lang/Object;


# static fields
.field private static R:Lcom/ninesky/browser/setting/a;

.field private static S:Landroid/content/Context;

.field private static f:I

.field private static g:I

.field private static h:I

.field private static i:I

.field private static j:Landroid/webkit/WebSettings$TextSize;

.field private static k:Landroid/webkit/WebSettings$ZoomDensity;


# instance fields
.field private A:I

.field private B:J

.field private C:Z

.field private D:Z

.field private E:Z

.field private F:Z

.field private G:Ljava/lang/String;

.field private H:Ljava/lang/String;

.field private I:Z

.field private J:Z

.field private K:Z

.field private L:Z

.field private M:J

.field private N:Ljava/lang/String;

.field private O:Ljava/lang/String;

.field private P:Ljava/lang/String;

.field private Q:Lcom/ninesky/browser/setting/e;

.field private T:Ljava/util/List;

.field private U:Ljava/util/List;

.field private a:Z

.field private b:Z

.field private c:I

.field private d:Z

.field private e:Lcom/ninesky/browser/b/a;

.field private l:Z

.field private m:Z

.field private n:Z

.field private o:Z

.field private p:Z

.field private q:Z

.field private r:Z

.field private s:Ljava/lang/String;

.field private t:Ljava/lang/String;

.field private u:Z

.field private v:Z

.field private w:Z

.field private x:Landroid/webkit/WebSettings$LayoutAlgorithm;

.field private y:Z

.field private z:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/16 v0, 0x8

    sput v0, Lcom/ninesky/browser/setting/a;->f:I

    sput v0, Lcom/ninesky/browser/setting/a;->g:I

    const/16 v0, 0x10

    sput v0, Lcom/ninesky/browser/setting/a;->h:I

    const/16 v0, 0xd

    sput v0, Lcom/ninesky/browser/setting/a;->i:I

    sget-object v0, Landroid/webkit/WebSettings$TextSize;->NORMAL:Landroid/webkit/WebSettings$TextSize;

    sput-object v0, Lcom/ninesky/browser/setting/a;->j:Landroid/webkit/WebSettings$TextSize;

    sget-object v0, Landroid/webkit/WebSettings$ZoomDensity;->MEDIUM:Landroid/webkit/WebSettings$ZoomDensity;

    sput-object v0, Lcom/ninesky/browser/setting/a;->k:Landroid/webkit/WebSettings$ZoomDensity;

    return-void
.end method

.method private constructor <init>()V
    .locals 4

    const/4 v3, 0x0

    const/4 v2, 0x1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-boolean v3, p0, Lcom/ninesky/browser/setting/a;->a:Z

    iput-boolean v3, p0, Lcom/ninesky/browser/setting/a;->b:Z

    iput v3, p0, Lcom/ninesky/browser/setting/a;->c:I

    iput-boolean v3, p0, Lcom/ninesky/browser/setting/a;->d:Z

    iput-boolean v3, p0, Lcom/ninesky/browser/setting/a;->l:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->m:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->n:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->o:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->p:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->q:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->r:Z

    const-string v0, "UTF-8"

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->s:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->t:Ljava/lang/String;

    iput-boolean v3, p0, Lcom/ninesky/browser/setting/a;->u:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->v:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->w:Z

    sget-object v0, Landroid/webkit/WebSettings$LayoutAlgorithm;->NORMAL:Landroid/webkit/WebSettings$LayoutAlgorithm;

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->x:Landroid/webkit/WebSettings$LayoutAlgorithm;

    iput-boolean v3, p0, Lcom/ninesky/browser/setting/a;->y:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->z:Z

    iput v3, p0, Lcom/ninesky/browser/setting/a;->A:I

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/ninesky/browser/setting/a;->B:J

    iput-boolean v3, p0, Lcom/ninesky/browser/setting/a;->C:Z

    iput-boolean v3, p0, Lcom/ninesky/browser/setting/a;->D:Z

    iput-boolean v3, p0, Lcom/ninesky/browser/setting/a;->E:Z

    iput-boolean v3, p0, Lcom/ninesky/browser/setting/a;->F:Z

    const-string v0, "/sdcard/ninesky/download/"

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->G:Ljava/lang/String;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->H:Ljava/lang/String;

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->I:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->J:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->K:Z

    iput-boolean v2, p0, Lcom/ninesky/browser/setting/a;->L:Z

    const-wide v0, 0x7fffffffffffffffL

    iput-wide v0, p0, Lcom/ninesky/browser/setting/a;->M:J

    const-string v0, ""

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->N:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->O:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->P:Ljava/lang/String;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->T:Ljava/util/List;

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/ninesky/browser/setting/a;
    .locals 6

    const/4 v5, 0x0

    if-nez p0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lcom/ninesky/browser/setting/a;->R:Lcom/ninesky/browser/setting/a;

    if-nez v0, :cond_1

    new-instance v0, Lcom/ninesky/browser/setting/a;

    invoke-direct {v0}, Lcom/ninesky/browser/setting/a;-><init>()V

    sput-object v0, Lcom/ninesky/browser/setting/a;->R:Lcom/ninesky/browser/setting/a;

    sput-object p0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    sget-object v0, Lcom/ninesky/browser/setting/a;->R:Lcom/ninesky/browser/setting/a;

    sget-object v1, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    const-string v2, "appcache"

    invoke-virtual {v1, v2, v5}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/ninesky/browser/setting/a;->N:Ljava/lang/String;

    new-instance v1, Lcom/ninesky/browser/setting/e;

    new-instance v2, Lcom/ninesky/browser/setting/b;

    iget-object v3, v0, Lcom/ninesky/browser/setting/a;->N:Ljava/lang/String;

    invoke-direct {v2, v3}, Lcom/ninesky/browser/setting/b;-><init>(Ljava/lang/String;)V

    new-instance v3, Lcom/ninesky/browser/setting/c;

    iget-object v4, v0, Lcom/ninesky/browser/setting/a;->N:Ljava/lang/String;

    invoke-direct {v3, v4}, Lcom/ninesky/browser/setting/c;-><init>(Ljava/lang/String;)V

    invoke-direct {v1, v2, v3}, Lcom/ninesky/browser/setting/e;-><init>(Lcom/ninesky/browser/setting/g;Lcom/ninesky/browser/setting/f;)V

    iput-object v1, v0, Lcom/ninesky/browser/setting/a;->Q:Lcom/ninesky/browser/setting/e;

    iget-object v1, v0, Lcom/ninesky/browser/setting/a;->Q:Lcom/ninesky/browser/setting/e;

    invoke-virtual {v1}, Lcom/ninesky/browser/setting/e;->a()J

    move-result-wide v1

    iput-wide v1, v0, Lcom/ninesky/browser/setting/a;->M:J

    sget-object v1, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    const-string v2, "databases"

    invoke-virtual {v1, v2, v5}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/ninesky/browser/setting/a;->O:Ljava/lang/String;

    sget-object v1, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    const-string v2, "geolocation"

    invoke-virtual {v1, v2, v5}, Landroid/content/Context;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/ninesky/browser/setting/a;->P:Ljava/lang/String;

    invoke-virtual {v0}, Lcom/ninesky/browser/setting/a;->a()V

    :cond_1
    sget-object v0, Lcom/ninesky/browser/setting/a;->R:Lcom/ninesky/browser/setting/a;

    goto :goto_0
.end method

.method static c()V
    .locals 1

    invoke-static {}, Landroid/webkit/WebIconDatabase;->getInstance()Landroid/webkit/WebIconDatabase;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebIconDatabase;->removeAllIcons()V

    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/CookieManager;->removeAllCookie()V

    invoke-virtual {v0}, Landroid/webkit/CookieManager;->removeExpiredCookie()V

    invoke-virtual {v0}, Landroid/webkit/CookieManager;->removeSessionCookie()V

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    invoke-static {v0}, Lcom/ninesky/browser/provider/e;->b(Landroid/content/ContentResolver;)V

    invoke-static {v0}, Lcom/ninesky/browser/provider/e;->c(Landroid/content/ContentResolver;)V

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/webkit/WebViewDatabase;->getInstance(Landroid/content/Context;)Landroid/webkit/WebViewDatabase;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebViewDatabase;->clearFormData()V

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/webkit/WebViewDatabase;->getInstance(Landroid/content/Context;)Landroid/webkit/WebViewDatabase;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebViewDatabase;->clearUsernamePassword()V

    invoke-virtual {v0}, Landroid/webkit/WebViewDatabase;->clearHttpAuthUsernamePassword()V

    invoke-static {}, Landroid/webkit/WebStorage;->getInstance()Landroid/webkit/WebStorage;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/WebStorage;->deleteAllData()V

    invoke-static {}, Landroid/webkit/GeolocationPermissions;->getInstance()Landroid/webkit/GeolocationPermissions;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/GeolocationPermissions;->clearAll()V

    return-void
.end method

.method private c(Landroid/webkit/WebSettings;)V
    .locals 5

    const/4 v3, 0x1

    const/4 v2, 0x0

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->o:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->o:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setWorkersEnabled(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->H:Ljava/lang/String;

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setUserAgentString(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->s:Ljava/lang/String;

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setDefaultTextEncodingName(Ljava/lang/String;)V

    sget v0, Lcom/ninesky/browser/setting/a;->f:I

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setMinimumFontSize(I)V

    sget v0, Lcom/ninesky/browser/setting/a;->g:I

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setMinimumLogicalFontSize(I)V

    sget v0, Lcom/ninesky/browser/setting/a;->h:I

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setDefaultFontSize(I)V

    sget v0, Lcom/ninesky/browser/setting/a;->i:I

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setDefaultFixedFontSize(I)V

    sget-object v0, Lcom/ninesky/browser/setting/a;->j:Landroid/webkit/WebSettings$TextSize;

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setTextSize(Landroid/webkit/WebSettings$TextSize;)V

    sget-object v0, Lcom/ninesky/browser/setting/a;->k:Landroid/webkit/WebSettings$ZoomDensity;

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setDefaultZoom(Landroid/webkit/WebSettings$ZoomDensity;)V

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->x:Landroid/webkit/WebSettings$LayoutAlgorithm;

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setLayoutAlgorithm(Landroid/webkit/WebSettings$LayoutAlgorithm;)V

    invoke-virtual {p1, v3}, Landroid/webkit/WebSettings;->setUseWideViewPort(Z)V

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->y:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setLoadWithOverviewMode(Z)V

    iget-wide v0, p0, Lcom/ninesky/browser/setting/a;->M:J

    invoke-virtual {p1, v0, v1}, Landroid/webkit/WebSettings;->setAppCacheMaxSize(J)V

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->N:Ljava/lang/String;

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setAppCachePath(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->O:Ljava/lang/String;

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setDatabasePath(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->P:Ljava/lang/String;

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setGeolocationDatabasePath(Ljava/lang/String;)V

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->I:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setAppCacheEnabled(Z)V

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->J:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setDatabaseEnabled(Z)V

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->K:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setDomStorageEnabled(Z)V

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->a:Z

    if-eqz v0, :cond_0

    invoke-virtual {p1, v2}, Landroid/webkit/WebSettings;->setLoadsImagesAutomatically(Z)V

    invoke-virtual {p1, v2}, Landroid/webkit/WebSettings;->setPluginsEnabled(Z)V

    invoke-virtual {p1, v2}, Landroid/webkit/WebSettings;->setJavaScriptCanOpenWindowsAutomatically(Z)V

    :goto_0
    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->b:Z

    if-eqz v0, :cond_1

    invoke-virtual {p1, v2}, Landroid/webkit/WebSettings;->setSaveFormData(Z)V

    invoke-virtual {p1, v2}, Landroid/webkit/WebSettings;->setSavePassword(Z)V

    invoke-virtual {p1, v2}, Landroid/webkit/WebSettings;->setGeolocationEnabled(Z)V

    move-object v0, p1

    :goto_1
    const/4 v1, 0x2

    move v4, v1

    move-object v1, v0

    move v0, v4

    :goto_2
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setCacheMode(I)V

    invoke-virtual {p1, v2}, Landroid/webkit/WebSettings;->setNeedInitialFocus(Z)V

    invoke-virtual {p1, v3}, Landroid/webkit/WebSettings;->setSupportMultipleWindows(Z)V

    return-void

    :cond_0
    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->n:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setLoadsImagesAutomatically(Z)V

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->m:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setPluginsEnabled(Z)V

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->p:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setJavaScriptCanOpenWindowsAutomatically(Z)V

    goto :goto_0

    :cond_1
    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->r:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setSaveFormData(Z)V

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->v:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setSavePassword(Z)V

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->L:Z

    invoke-virtual {p1, v0}, Landroid/webkit/WebSettings;->setGeolocationEnabled(Z)V

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->I:Z

    if-eqz v0, :cond_2

    const/4 v0, -0x1

    move-object v1, p1

    goto :goto_2

    :cond_2
    move-object v0, p1

    goto :goto_1
.end method

.method public static q()Lcom/ninesky/browser/setting/a;
    .locals 1

    sget-object v0, Lcom/ninesky/browser/setting/a;->R:Lcom/ninesky/browser/setting/a;

    return-object v0
.end method

.method static synthetic r()Landroid/content/Context;
    .locals 1

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    return-object v0
.end method

.method private s()V
    .locals 2

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->T:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebSettings;

    invoke-direct {p0, v0}, Lcom/ninesky/browser/setting/a;->c(Landroid/webkit/WebSettings;)V

    goto :goto_0
.end method

.method private t()V
    .locals 3

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    return-void

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/setting/h;

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->a:Z

    invoke-virtual {v0, v2}, Lcom/ninesky/browser/setting/h;->a(Z)V

    goto :goto_0
.end method

.method private u()V
    .locals 3

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    return-void

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/setting/h;

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->b:Z

    invoke-virtual {v0, v2}, Lcom/ninesky/browser/setting/h;->b(Z)V

    goto :goto_0
.end method


# virtual methods
.method final a()V
    .locals 6

    const/4 v5, 0x0

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    const-string v1, "home_page"

    iget-object v2, p0, Lcom/ninesky/browser/setting/a;->t:Ljava/lang/String;

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/ninesky/browser/setting/a;->t:Ljava/lang/String;

    const-string v1, "auto_update"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->u:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->u:Z

    const-string v1, "enable_image"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->n:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->n:Z

    const-string v1, "enable_javascript"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->o:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->o:Z

    const-string v1, "js_can_open_window"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->p:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->p:Z

    const-string v1, "save_password"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->v:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->v:Z

    const-string v1, "save_form_data"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->r:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->r:Z

    const-string v1, "text_size"

    sget-object v2, Lcom/ninesky/browser/setting/a;->j:Landroid/webkit/WebSettings$TextSize;

    invoke-virtual {v2}, Landroid/webkit/WebSettings$TextSize;->name()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/webkit/WebSettings$TextSize;->valueOf(Ljava/lang/String;)Landroid/webkit/WebSettings$TextSize;

    move-result-object v1

    sput-object v1, Lcom/ninesky/browser/setting/a;->j:Landroid/webkit/WebSettings$TextSize;

    const-string v1, "zoom_density"

    sget-object v2, Lcom/ninesky/browser/setting/a;->k:Landroid/webkit/WebSettings$ZoomDensity;

    invoke-virtual {v2}, Landroid/webkit/WebSettings$ZoomDensity;->name()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/webkit/WebSettings$ZoomDensity;->valueOf(Ljava/lang/String;)Landroid/webkit/WebSettings$ZoomDensity;

    move-result-object v1

    sput-object v1, Lcom/ninesky/browser/setting/a;->k:Landroid/webkit/WebSettings$ZoomDensity;

    const-string v1, "text_encode"

    iget-object v2, p0, Lcom/ninesky/browser/setting/a;->s:Ljava/lang/String;

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/ninesky/browser/setting/a;->s:Ljava/lang/String;

    const-string v1, "enable_flash"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->m:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->m:Z

    const-string v1, "autofit_page"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->q:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->q:Z

    const-string v1, "overview_mode"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->y:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->y:Z

    const-string v1, "record_history"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->z:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->z:Z

    const-string v1, "user_agent"

    iget v2, p0, Lcom/ninesky/browser/setting/a;->A:I

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v1

    iput v1, p0, Lcom/ninesky/browser/setting/a;->A:I

    iget-boolean v1, p0, Lcom/ninesky/browser/setting/a;->q:Z

    if-eqz v1, :cond_2

    sget-object v1, Landroid/webkit/WebSettings$LayoutAlgorithm;->NARROW_COLUMNS:Landroid/webkit/WebSettings$LayoutAlgorithm;

    iput-object v1, p0, Lcom/ninesky/browser/setting/a;->x:Landroid/webkit/WebSettings$LayoutAlgorithm;

    :goto_0
    const-string v1, "is_default_browser"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->l:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->l:Z

    sget-object v1, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    sget-object v4, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-virtual {v4}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v2, v4}, Landroid/content/pm/PackageManager;->getPreferredActivities(Ljava/util/List;Ljava/util/List;Ljava/lang/String;)I

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_3

    const/4 v1, 0x1

    :goto_1
    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->l:Z

    if-eq v2, v1, :cond_0

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->l:Z

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    const-string v2, "is_default_browser"

    iget-boolean v3, p0, Lcom/ninesky/browser/setting/a;->l:Z

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_0
    const-string v1, "enable_cookie"

    invoke-interface {v0, v1}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v1

    invoke-virtual {v1}, Landroid/webkit/CookieManager;->acceptCookie()Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->w:Z

    :cond_1
    :goto_2
    const-string v1, "enable_appcache"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->I:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->I:Z

    const-string v1, "enable_database"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->J:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->J:Z

    const-string v1, "enable_domstorage"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->K:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->K:Z

    const-string v1, "enable_geolocation"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->L:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->L:Z

    const-string v1, "private_mode"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->b:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->b:Z

    const-string v1, "low_carbon_mode"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->a:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->a:Z

    const-string v1, "lock_screen_mode"

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/ninesky/browser/setting/a;->c:I

    const-string v1, "mobile_mode"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->d:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->d:Z

    const-string v1, "open_low_carbon_dialog"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->D:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->D:Z

    const-string v1, "open_mobile_mode_dialog"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->E:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->E:Z

    const-string v1, "open_privacy_dialog"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->C:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->C:Z

    const-string v1, "exit_mobile_mode_dialog"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->F:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->F:Z

    const-string v1, "download_path"

    iget-object v2, p0, Lcom/ninesky/browser/setting/a;->G:Ljava/lang/String;

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/ninesky/browser/setting/a;->G:Ljava/lang/String;

    const-string v1, "auto_update_time"

    iget-wide v2, p0, Lcom/ninesky/browser/setting/a;->B:J

    invoke-interface {v0, v1, v2, v3}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/ninesky/browser/setting/a;->B:J

    iget v0, p0, Lcom/ninesky/browser/setting/a;->A:I

    invoke-static {v0}, Lcom/ninesky/browser/setting/i;->a(I)Lcom/ninesky/browser/setting/i;

    move-result-object v0

    if-eqz v0, :cond_5

    invoke-virtual {v0}, Lcom/ninesky/browser/setting/i;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->H:Ljava/lang/String;

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->H:Ljava/lang/String;

    sput-object v0, Lcom/ninesky/a/a/f;->a:Ljava/lang/String;

    :goto_3
    invoke-direct {p0}, Lcom/ninesky/browser/setting/a;->s()V

    return-void

    :cond_2
    sget-object v1, Landroid/webkit/WebSettings$LayoutAlgorithm;->NORMAL:Landroid/webkit/WebSettings$LayoutAlgorithm;

    iput-object v1, p0, Lcom/ninesky/browser/setting/a;->x:Landroid/webkit/WebSettings$LayoutAlgorithm;

    goto/16 :goto_0

    :cond_3
    move v1, v5

    goto/16 :goto_1

    :cond_4
    const-string v1, "enable_appcache"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->w:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/ninesky/browser/setting/a;->w:Z

    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v1

    invoke-virtual {v1}, Landroid/webkit/CookieManager;->acceptCookie()Z

    move-result v1

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->w:Z

    if-eq v1, v2, :cond_1

    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v1

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->w:Z

    invoke-virtual {v1, v2}, Landroid/webkit/CookieManager;->setAcceptCookie(Z)V

    goto/16 :goto_2

    :cond_5
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->H:Ljava/lang/String;

    goto :goto_3
.end method

.method public final a(J)V
    .locals 4

    iput-wide p1, p0, Lcom/ninesky/browser/setting/a;->B:J

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "auto_update_time"

    iget-wide v2, p0, Lcom/ninesky/browser/setting/a;->B:J

    invoke-interface {v0, v1, v2, v3}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    return-void
.end method

.method public final a(Landroid/webkit/WebSettings;)V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->T:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->T:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->T:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-direct {p0, p1}, Lcom/ninesky/browser/setting/a;->c(Landroid/webkit/WebSettings;)V

    return-void
.end method

.method public final a(Lcom/ninesky/browser/setting/h;)V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    :cond_1
    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public final a(Z)V
    .locals 2

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->d:Z

    if-eq v0, p1, :cond_0

    iput-boolean p1, p0, Lcom/ninesky/browser/setting/a;->d:Z

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "mobile_mode"

    invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_0
    return-void
.end method

.method public final b()Lcom/ninesky/browser/b/a;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->e:Lcom/ninesky/browser/b/a;

    return-object v0
.end method

.method public final b(Landroid/webkit/WebSettings;)V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->T:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->T:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method

.method public final b(Z)V
    .locals 2

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->a:Z

    if-eq v0, p1, :cond_0

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "low_carbon_mode"

    invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    iput-boolean p1, p0, Lcom/ninesky/browser/setting/a;->a:Z

    invoke-direct {p0}, Lcom/ninesky/browser/setting/a;->s()V

    invoke-direct {p0}, Lcom/ninesky/browser/setting/a;->t()V

    :cond_0
    return-void
.end method

.method final c(Z)V
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->a:Z

    if-eq v0, p1, :cond_0

    iput-boolean p1, p0, Lcom/ninesky/browser/setting/a;->a:Z

    invoke-direct {p0}, Lcom/ninesky/browser/setting/a;->s()V

    invoke-direct {p0}, Lcom/ninesky/browser/setting/a;->t()V

    :cond_0
    return-void
.end method

.method final d()V
    .locals 5

    const/4 v4, 0x0

    const/4 v3, 0x1

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->clear()Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    sget-object v1, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    const v2, 0x7f050002

    invoke-static {v1, v2, v3}, Landroid/preference/PreferenceManager;->setDefaultValues(Landroid/content/Context;IZ)V

    sget-object v1, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    const/high16 v2, 0x7f05

    invoke-static {v1, v2, v3}, Landroid/preference/PreferenceManager;->setDefaultValues(Landroid/content/Context;IZ)V

    const-string v1, "low_carbon_mode"

    invoke-interface {v0, v1, v4}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/setting/a;->c(Z)V

    const-string v1, "private_mode"

    invoke-interface {v0, v1, v4}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/setting/a;->e(Z)V

    const-string v1, "auto_update"

    invoke-interface {v0, v1, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/setting/a;->f(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->Q:Lcom/ninesky/browser/setting/e;

    invoke-virtual {v0}, Lcom/ninesky/browser/setting/e;->a()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/ninesky/browser/setting/a;->M:J

    return-void
.end method

.method public final d(Z)V
    .locals 2

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->b:Z

    if-eq v0, p1, :cond_0

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "private_mode"

    invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    iput-boolean p1, p0, Lcom/ninesky/browser/setting/a;->b:Z

    invoke-direct {p0}, Lcom/ninesky/browser/setting/a;->s()V

    invoke-direct {p0}, Lcom/ninesky/browser/setting/a;->u()V

    :cond_0
    return-void
.end method

.method final e(Z)V
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->b:Z

    if-eq v0, p1, :cond_0

    iput-boolean p1, p0, Lcom/ninesky/browser/setting/a;->b:Z

    invoke-direct {p0}, Lcom/ninesky/browser/setting/a;->s()V

    invoke-direct {p0}, Lcom/ninesky/browser/setting/a;->u()V

    :cond_0
    return-void
.end method

.method public final e()Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->d:Z

    return v0
.end method

.method final f(Z)V
    .locals 3

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->u:Z

    if-eq v0, p1, :cond_0

    iput-boolean p1, p0, Lcom/ninesky/browser/setting/a;->u:Z

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->U:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    return-void

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/setting/h;

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->u:Z

    invoke-virtual {v0, v2}, Lcom/ninesky/browser/setting/h;->c(Z)V

    goto :goto_0
.end method

.method public final f()Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->a:Z

    return v0
.end method

.method public final g(Z)V
    .locals 3

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->C:Z

    if-eq v0, p1, :cond_0

    iput-boolean p1, p0, Lcom/ninesky/browser/setting/a;->C:Z

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "open_privacy_dialog"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->C:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_0
    return-void
.end method

.method public final g()Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->b:Z

    return v0
.end method

.method public final h(Z)V
    .locals 3

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->D:Z

    if-eq v0, p1, :cond_0

    iput-boolean p1, p0, Lcom/ninesky/browser/setting/a;->D:Z

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "open_low_carbon_dialog"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->D:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_0
    return-void
.end method

.method public final h()Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->z:Z

    return v0
.end method

.method public final i(Z)V
    .locals 3

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->E:Z

    if-eq v0, p1, :cond_0

    iput-boolean p1, p0, Lcom/ninesky/browser/setting/a;->E:Z

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "open_mobile_mode_dialog"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->E:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_0
    return-void
.end method

.method public final i()Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->u:Z

    return v0
.end method

.method public final j()Lcom/ninesky/browser/setting/e;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->Q:Lcom/ninesky/browser/setting/e;

    return-object v0
.end method

.method public final j(Z)V
    .locals 3

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->F:Z

    if-eq v0, p1, :cond_0

    iput-boolean p1, p0, Lcom/ninesky/browser/setting/a;->F:Z

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "exit_mobile_mode_dialog"

    iget-boolean v2, p0, Lcom/ninesky/browser/setting/a;->F:Z

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_0
    return-void
.end method

.method final k(Z)V
    .locals 8

    iput-boolean p1, p0, Lcom/ninesky/browser/setting/a;->l:Z

    sget-object v0, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    iget-boolean v1, p0, Lcom/ninesky/browser/setting/a;->l:Z

    if-eqz v1, :cond_0

    sget-object v1, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->clearPackagePreferredActivities(Ljava/lang/String;)V

    new-instance v1, Landroid/content/IntentFilter;

    const-string v2, "android.intent.action.VIEW"

    invoke-direct {v1, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    const-string v2, "android.intent.category.BROWSABLE"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addCategory(Ljava/lang/String;)V

    const-string v2, "android.intent.category.DEFAULT"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addCategory(Ljava/lang/String;)V

    const-string v2, "http"

    invoke-virtual {v1, v2}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    new-instance v2, Landroid/content/ComponentName;

    sget-object v3, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v3

    const-class v4, Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v4}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v3, 0x2

    new-array v3, v3, [Landroid/content/ComponentName;

    const/4 v4, 0x0

    new-instance v5, Landroid/content/ComponentName;

    const-string v6, "com.android.browser"

    const-string v7, "com.android.browser.BrowserActivity"

    invoke-direct {v5, v6, v7}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    aput-object v5, v3, v4

    const/4 v4, 0x1

    aput-object v2, v3, v4

    const/high16 v4, 0x20

    invoke-virtual {v0, v1, v4, v3, v2}, Landroid/content/pm/PackageManager;->addPreferredActivity(Landroid/content/IntentFilter;I[Landroid/content/ComponentName;Landroid/content/ComponentName;)V

    :goto_0
    return-void

    :cond_0
    sget-object v1, Lcom/ninesky/browser/setting/a;->S:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->clearPackagePreferredActivities(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public final k()Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->C:Z

    return v0
.end method

.method public final l()Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->D:Z

    return v0
.end method

.method public final m()Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->E:Z

    return v0
.end method

.method public final n()Z
    .locals 1

    iget-boolean v0, p0, Lcom/ninesky/browser/setting/a;->F:Z

    return v0
.end method

.method public final o()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/setting/a;->G:Ljava/lang/String;

    return-object v0
.end method

.method public final p()J
    .locals 2

    iget-wide v0, p0, Lcom/ninesky/browser/setting/a;->B:J

    return-wide v0
.end method
